<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1 th:text="${name}"></h1>

<hr>
<div shiro:hasPermission="user:add">
    用户添加:<a href="/add">add</a><br>
</div>

<div shiro:hasPermission="user:update">
    用户更新:<a href="/update">update</a><br>
</div>
<a href="/login">登录</a>
</body>
</html>